Ember.$.ajax({
  method: 'GET',
  url: "/api/v1/taskitems/" + ti.id,
  data: {projection: "ti-with-appdsc"},
  headers: {
    "Authorization": this.createBaHeader()
  },
  dataType: 'json',
  contentType: 'application/json; charset=UTF-8',
})
.done(function(data, textStatus, jqXHR){
  self.set('taskItemResponseJson', data);
  self.set('taskItemResponse', JSON.stringify(data, null, ' '));
  if (data && finished.indexOf(data.state) !== -1) {
    self.set('querystate', 'ok');
  } else {
    self.set('countdown', C_T);
    self.get('miniDaemon').start();
    self.set('querystate', 'retry');
  }
})
.fail(function(qXHR, textStatus, errorThrown){
  var qo = {readyState: qXHR.readyState, responseText: qXHR.responseText, status: qXHR.status, statusText: qXHR.statusText};
    qo.notice = "注意，此对象并不代表服务器返回的文本，而是客户端ajax捕获的响应。";
    if (qo.status === 403) {
      qo.notice1 = "请提供正确的keyId和keySecret，您登陆系统可以生成属于您使用的key对。";
    }
    self.set('countdown', C_T);
    self.get('miniDaemon').start();
    self.set('taskItemResponse', JSON.stringify(qo, null, ' '));
    self.set('querystate', 'retry');
    })
.always(function(){
  self.set('querying', false);
});
